<html>
<head>
  <title>消息管理——系统广播</title>
  <meta name="layout" content="common_header"/>
  <link type="text/css" href="${resource(dir: 'css', file: 'ui.all.css', absolute: true)}" rel="stylesheet"/>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.form.min.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.metadata.pack.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'common.custom.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/ui', file: 'ui.core.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/ui', file: 'ui.datepicker.js', absolute: true)}"></script>
  <script>
    $(function() {
      $("#zge_dateCreated_begin").datepicker({
        dateFormat: 'yy-mm-dd',
        changeMonth: true,
        changeYear: true

      });
      $("#zle_dateCreated_end").datepicker({
        dateFormat: 'yy-mm-dd',
        changeMonth: true,
        changeYear: true

      });
    });
  </script
</head>
<body>
<div id="man_zone">
  <form id="submitForm" name="submitForm" action="${createLink(controller: "admin", action: 'approveEstate', absolute: true)}" method="post">
    <input type="hidden" id="id" name="id"/>
    <input type="hidden" id="flag" name="flag"/>
  </form>
  <form id="queryForm" name="queryForm" action="${createLink(controller: "scaffold", action: 'list', absolute: true)}" method="post">
    <input type="hidden" name="view" value="${params?.view}"/>
    <input type="hidden" name="property" value="${params?.property}"/>
    <table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" class="table_style">
      <tr>
      
        <td class="left_title_1">日期</td>
        <td class="fillin">

          从
          <input name="zge_dateCreated_begin" id="zge_dateCreated_begin"
                  value="${params?.zge_dateCreated_begin}"/>
          到
          <input name="zle_dateCreated_end" id="zle_dateCreated_end"
                  value= ${params.zle_dateCreated_end}>

        </td>
      </tr>

      <tr>
        <td class="fillin" colspan="1" align="center"><input type="image" src="${resource(dir: '/images/admin_ui/', file: 'query1.gif', absolute: true)}" alt="查询"/></td>
               <td class="fillin" colspan="3" align="center">
          <a href="${createLink(controller: 'scaffold', action: 'show', absolute: true)}?property=BroadcastMessage&view=/broadcastMessage/add">
            <img align="right" src="${resource(dir: '/images/admin_ui/', file: 'add.gif', absolute: true)}" alt="添加"/>
          </a>
        </td>
      </tr>

    </table>
  </form>
  <br>
  <table cellpadding="0" cellspacing="0" width="95%" align="center" class="xtable">
    <thead>
    <tr>

       <th>接收人</th>
      <th>内容</th>
              <th>发布时间</th>

      <th>操作</th>

    </tr>
    </thead>
    <tbody>
    <g:each in="${list.items}">
      <tr>


                                         <td width="10%" align="center">${it.receiver}</td>
        <td width="10%" align="center">${it.msgContent}</td>
                                  <td width="10%" align="center">${it.dateCreated}</td>




        <td width="10%" align="center">
          <a href="${createLink(controller: 'scaffold', action: 'show', absolute: true)}?property=${params?.property}&id=${it.id}">
            <img src="${resource(dir: '/images/admin_ui/', file: 'preview.gif', absolute: true)}" alt="查看"/>
          </a>

        </td>

      </tr>
    </g:each>
    </tbody>
    <tfoot>
    <tr>
      <td colspan="10" align="center">
        <g:paginate total="${list.count}" params="${params}"/>
      </td>
    </tr>
    </tfoot>
  </table>
</div>
</body>
</html>
